package com.wf.classRoomTest.staticcc;

/**
 * @Author fengqq
 * @Description TODO
 * @Date 2024/6/19  15:24
 */
public class Test {
    public static void main(String[] args) {
        //创建目标对象
        IUserService target = new UserService();

        //创建代理对象 （对原有方法的功能增强）
        IUserService proxy = new StaticUserSerivceProxy(target);
        IUserService q = new StaticUserSerivceProxy(proxy);

        //测试登录
        proxy.login("admin","admin");
        q.login("admin","admin");
    }
}
